﻿@{
    ViewBag.Title = "库存变更一览";
    Layout = "~/Views/Shared/_LayoutList.cshtml";
}
@(       
 Html.nbGridFor<StockRecordView>(s =>
 {
     s.ShowCheckBox(false);
     s.SelectedOnClick(false);
     s.Action(@Url.Action("List"));
     s.Columns(c =>
    {
        c.Bind(e => e.Id).IsKey();
        c.BindEnum(m => m.BigClass, "BigClass").Title("品名大类").AsSearch().Width(60);
        c.BindEnum(e => e.Category, "MaterialCategory").Title("品名分类").Width(50).AsSearch();
        c.Bind(e => e.Code).Width(60).Title("品名编号").AsQuery();
        c.Bind(e => e.Name).Width(100).Title("品名名称").AsQuery().Align(GridAlign.Left).AsSearch();
        c.Bind(e => e.Type).Width(60).Title("变更类型").AsQuery().AsSearch();
        c.Bind(e => e.Count).Width(50).Title("变更数量").AsSearch(SearchControlType.NumberBlock);
        c.BindEnum(e => e.Unit, "MaterialUnit").Title("品名单位").Width(50);
        c.BindEnum(e => e.Specification, "MaterialSpec").Title("变更规格").Width(50);
        c.Bind(e => e.UpdateUser).Title("更新人").Width(80);
        c.BindDateTime(e => e.UpdateDate).Title("更新时间").Width(80);
    });
 }))
